package com.mdxx.xczd.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.TextView;
import com.mdxx.xczd.R;
import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

public class LocationReallyActivity extends AppCompatActivity {

    @BindView(R.id.tv_locationrea_test1)
    TextView mTvTest1;

    @BindView(R.id.tv_locationrea_test2)
    TextView mTvTest2;

    @BindView(R.id.tv_locationrea_test3)
    TextView mTvTest3;

    @BindView(R.id.tv_locationrea_test4)
    TextView mTvTest4;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_location_really);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.tv_locationrea_test1, R.id.tv_locationrea_test2, R.id.tv_locationrea_test3, R.id.tv_locationrea_test4})
    void onClick(View v) {
        switch (v.getId()) {
            case R.id.tv_locationrea_test1:
                startActivity(1);
                break;

            case R.id.tv_locationrea_test2:
                startActivity(2);
                break;

            case R.id.tv_locationrea_test3:
                startActivity(3);
                break;

            case R.id.tv_locationrea_test4:
                startActivity(4);
                break;
        }
    }

    private void startActivity(int type2){
        Intent intent =new Intent(LocationReallyActivity.this,LocationTTTestActivity.class);
        Bundle bundle=new Bundle();
        bundle.putInt("type1", 1);
        bundle.putInt("type2", type2);
        intent.putExtras(bundle);
        startActivity(intent);
    }
}
